package com.wzh.glsc.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.common.utils.PageUtils;
import com.wzh.glsc.product.entity.AttrEntity;
import com.wzh.glsc.product.entity.AttrGroupEntity;
import com.wzh.glsc.product.vo.AttrAttrgroupRelationVo;
import com.wzh.glsc.product.vo.AttrGroupWithAttrsVo;
import com.wzh.glsc.product.vo.SkuItemVo;
//import org..Object;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lcm
 * @email 1291529969@gmail.com
 * @date 2022-03-16 19:32:04
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //条件分页查询
    PageUtils queryPageByCatalogId(Map<String, Object> params,Long catalogId);

    //查询分组关联信息
    List<AttrEntity> getAttrRelation(Long attrGroupId);

    //属性与分组关联删除
    void removeRelation(AttrAttrgroupRelationVo[] attrAttrgroupRelationVolist);

    List<AttrGroupWithAttrsVo> withattrBycatelogId(Long attrGroupId);

    List<SkuItemVo.SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

